package org.ahuanlien.crm.query;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QueryObject {
	private int page;//当前页
	private int rows;//每页显示数量

	private String sort;//排序的列
	private String order;//升降序

	public int getStartIndex() {
		return (page - 1) * rows;
	}
}
